package com.example.demo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
// 如果 @ConfigurationProperties 里面只写一个参数，那么默认key就是prefix
@Data
@ConfigurationProperties("dbtype")
@Component
public class ListConfig {
    private List<String> name;
}
